@charset "utf-8";
//scss文件引入common
@import "common.scss";
//声明变量：保存设计图宽度
$width:7.5rem;

/*移动端布局框架搭建*/

header {
    width: $width;
    height: 1.28rem;
    background: #0979f8;
}

footer {
    width: $width;
    height: 1rem;
    background: red;
}

//为了body设置100%
html {
    height: 100%;
}

body {
    //百分比：相对单位，相对于父级，这里指的是hmtl
    //为了main部分占满手机空白
    height: 100%;
    //声明父盒子为弹性盒子
    display: flex;
    //改变主轴方向
    flex-direction: column;
}

main {
    width: $width;
    flex: 1;
}


/*移动端布局框架搭建*/


/*header start*/

header {
    box-sizing: border-box;
    display: flex;
    padding: 0.11rem 0.1rem 0.26rem 0.13rem;
    >h3 {
        width: 1.44rem;
        height: 0.36rem;
        font-size: 0.36rem;
        color: white;
        font-weight: normal;
        padding: 0.56rem 0 0 2.93rem;
    }
    >img {
        width: 1.74rem;
        height: 0.62rem;
        padding: 0.39rem 0 0 1.14rem;
    }
}


/*header end*/


/*上下滑动功能布局*/

.main {
    overflow: hidden;
    .main-content {
        //至少高度101%,不能去掉min,否则内容高度就固定了
        min-height: 101%;
        background: #ddd;
    }
}


/*上下滑动功能布局*/


/*轮播图*/

.main {
    >.main-content {
        .main-content-banner {
            >.swiper-wrapper {
                >.swiper-slide {
                    >img {
                        width: 100%;
                        height: 3.25rem;
                    }
                }
            }
        }
    }
}


/*导航栏*/

.main {
    nav {
        background: #fff;
        >.nav-active1 {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            box-sizing: border-box;
            >li {
                text-align: center;
                width: 25%;
                height: 1.4rem;
                padding-top: 0.32rem;
                justify-content: center;
                >img {
                    width: 0.97rem;
                    height: 1.1rem;
                }
                >p {
                    font-size: 0.24rem;
                    line-height: 0.36rem;
                    color: #3f3f3f;
                }
            }
        }
    }
}

.main {
    nav {
        >.nav-active2 {
            display: flex;
            box-sizing: border-box;
            padding: 0 0.3rem;
            justify-content: space-around;
            >li {
                margin: 0.37rem 0 0.3rem;
                width: 2.18rem;
                height: 1.2rem;
                >img {
                    width: 2.18rem;
                    height: 1.2rem;
                    box-shadow: 0rem 0.02rem 0.17rem 0rem rgba(4, 0, 0, 0.2);
                    border-radius: 0.1rem;
                }
            }
        }
    }
}

.main {
    >.main-content {
        >.main-active3 {
            display: flex;
            box-sizing: border-box;
            padding: 0.2rem 0.23rem;
            justify-content: space-around;
            flex-wrap: wrap;
            margin: 0.3rem 0;
            background: white;
            >li {
                width: 50%;
                height: 1.71rem;
                background-color: #fafcfb;
                >img {
                    width: 3.49rem;
                    height: 1.71rem;
                    background-color: #fafcfb;
                }
            }
        }
    }
}

.main {
    .main-active4 {
        width: 100%;
        margin-bottom: 0.3rem;
        >li {
            height: 4.5rem;
            background: #fff;
            margin-bottom: 0.3rem;
            >img {
                width: 100%;
            }
            >h4 {
                padding: 0 0.28rem;
                font-size: 0.272rem;
                font-weight: normal;
                color: #3f3f3f;
                line-height: 0.80rem;
            }
            >p {
                font-size: 0.311rem;
                color: #ff4c4c;
                padding: 0 0.28rem;
                >span {
                    width: 0.3rem;
                    height: 0.3rem;
                    padding-left: 5.14rem;
                }
            }
        }
    }
}

.main {
    .main-radio {
        background: white;
        >h5 {
            height: 1rem;
            border-bottom: 1px solid #d6d7dc;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            >span {
                font-size: 0.32rem;
                font-weight: normal;
                color: #1bb6f0;
                margin-right: 0.13rem;
            }
            img {
                width: 0.32rem;
            }
        }
        >ul {
            display: flex;
            box-sizing: border-box;
            justify-content: space-between;
            padding: 0 0.25rem;
            flex-wrap: wrap;
            >li {
                width: 3.34rem;
                height: 5.1rem;
                margin-top: 0.3rem;
                box-sizing: border-box;
                border: solid 1px #d6d7dc;
                border-radius: 0.04rem;
                >img {
                    width: 3.29rem;
                    height: 3.32rem;
                    border-bottom: 1px solid #d6d7dc;
                }
                >h4 {
                    font-size: 0.272rem;
                    font-weight: normal;
                    line-height: 0.6rem;
                    color: #3f3f3f;
                    >span {
                        display: block;
                        font-size: 0.233rem;
                        color: #7f8699;
                        line-height: 0.3rem;
                    }
                }
                >p {
                    line-height: 0.88rem;
                    font-size: 0.311rem;
                    color: #3f3f3f;
                    >span {
                        margin-left: 1.36rem;
                        >img {
                            width: 0.3rem;
                            margin-top: 0.26rem;
                        }
                    }
                }
            }
        }
    }
}


/*尾部*/

footer {
    background: #fff;
    >ul {
        height: 1rem;
        box-sizing: border-box;
        border-top: solid 1px #d6d7dc;
        display: flex;
        justify-content: space-around;
        align-items: center;
        >li {
            text-align: center;
            >img {
                width: 0.39rem;
                height: 0.39rem;
            }
            >p {
                font-size: 0.24rem;
                line-height: 0.126rem;
                margin-top: 0.13rem;
                color: #7f8699;
            }
            &.active {
                >p {
                    color: #00a0e8;
                }
            }
        }
    }
}